/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PrincipalForm.java
 *
 * Created on 04/06/2013, 15:07:51
 */

package br.com.formularios;

/**
 *
 * @author orienice
 */
public class PrincipalForm extends javax.swing.JFrame {

    /** Creates new form PrincipalForm */
    public PrincipalForm() {
        initComponents();
    }

    PrincipalForm(String login) {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JSeparator();
        jMenu2 = new javax.swing.JMenu();
        home_livro = new javax.swing.JMenuItem();
        jSeparator6 = new javax.swing.JSeparator();
        home_periodico = new javax.swing.JMenuItem();
        jSeparator7 = new javax.swing.JSeparator();
        home_cd_dvd = new javax.swing.JMenuItem();
        jSeparator8 = new javax.swing.JSeparator();
        home_usuário = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenuItem3 = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JSeparator();
        jMenuItem4 = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JSeparator();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        cadastrar_livro = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JSeparator();
        alterar_excluir = new javax.swing.JMenuItem();
        jSeparator5 = new javax.swing.JSeparator();
        buscar_livros = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/inicio1.png"))); // NOI18N
        jMenu1.setMnemonic('A');
        jMenu1.setText("Arquivo");
        jMenu1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu1ActionPerformed(evt);
            }
        });

        jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/Sair.png"))); // NOI18N
        jMenuItem2.setText("Sair");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);
        jMenu1.add(jSeparator1);

        jMenuBar1.add(jMenu1);

        jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/Usuários.png"))); // NOI18N
        jMenu2.setText("Cadastro de itens e usuários");

        home_livro.setText("Livro");
        jMenu2.add(home_livro);
        jMenu2.add(jSeparator6);

        home_periodico.setText("Periódico");
        jMenu2.add(home_periodico);
        jMenu2.add(jSeparator7);

        home_cd_dvd.setText("CD/DVD");
        jMenu2.add(home_cd_dvd);
        jMenu2.add(jSeparator8);

        home_usuário.setText("Usuário");
        jMenu2.add(home_usuário);

        jMenuBar1.add(jMenu2);

        jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/Usuários.png"))); // NOI18N
        jMenu3.setText("Funcinário");

        jMenuItem3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/Novousuário.png"))); // NOI18N
        jMenuItem3.setText("Cadastrar");
        jMenu3.add(jMenuItem3);
        jMenu3.add(jSeparator2);

        jMenuItem4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/editarcliente.png"))); // NOI18N
        jMenuItem4.setText("Alterar/Excluir");
        jMenu3.add(jMenuItem4);
        jMenu3.add(jSeparator3);

        jMenuItem5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/Pesquisar.png"))); // NOI18N
        jMenuItem5.setText("Buscar");
        jMenu3.add(jMenuItem5);

        jMenuBar1.add(jMenu3);

        jMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/Livros.png"))); // NOI18N
        jMenu4.setText("Livros");

        cadastrar_livro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/Novolivro.png"))); // NOI18N
        cadastrar_livro.setText("Cadastrar");
        jMenu4.add(cadastrar_livro);
        jMenu4.add(jSeparator4);

        alterar_excluir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/editarlivro.png"))); // NOI18N
        alterar_excluir.setText("Alterar/Excluir");
        jMenu4.add(alterar_excluir);
        jMenu4.add(jSeparator5);

        buscar_livros.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/imagens/Pesquisar.png"))); // NOI18N
        buscar_livros.setText("Buscar");
        jMenu4.add(buscar_livros);

        jMenuBar1.add(jMenu4);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 607, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 217, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenu1ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        //aqui é a tela principal do sistema depois do login
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Login().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem alterar_excluir;
    private javax.swing.JMenuItem buscar_livros;
    private javax.swing.JMenuItem cadastrar_livro;
    private javax.swing.JMenuItem home_cd_dvd;
    private javax.swing.JMenuItem home_livro;
    private javax.swing.JMenuItem home_periodico;
    private javax.swing.JMenuItem home_usuário;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSeparator jSeparator6;
    private javax.swing.JSeparator jSeparator7;
    private javax.swing.JSeparator jSeparator8;
    // End of variables declaration//GEN-END:variables

}
